package routers

import (
	"server/app/helper"
	"server/app/schemas/req"
	"server/app/service"
	"server/core"

	"github.com/gin-gonic/gin"
)

var LoginGroup = core.Group("/login")

func init() {
	LoginGroup.AddGET("/account", account)
}

func account(c *gin.Context) {
	var r req.LoginAccount
	helper.VerifyQuery(c, &r)
	helper.Data(c, service.LoginService.List(c, &r))
}
